<?php
defined('IN_ADMIN') or exit('No permission resources.');
include $this->admin_tpl('header','admin');
?>
<script type="text/javascript">
<!--
	$(function(){
		$.formValidator.initConfig({formid:"myform",autotip:true,onerror:function(msg,obj){window.top.art.dialog({content:msg,lock:true,width:'200',height:'50'}, function(){this.close();$(obj).focus();})}});
		$("#s_key").formValidator({onshow:"<?php echo L("input").L('siteSetting_name')?>",onfocus:"<?php echo L("input").L('label_name')?>",oncorrect:"<?php echo L('input_right');?>"}).inputValidator({min:1,onerror:"<?php echo L("input").L('label_name')?>"});
	})
//-->
</script>
<div class="pad-lr-10">
<form action="./index.php?m=admin&c=siteSetting&a=add" method="post" id="myform">
<fieldset>
	<legend><?php echo L('siteSetting_info')?></legend>
	<table width="100%"  class="table_form">
  <tr>
    <th width="120"><?php echo L('siteSetting_name')?>：</th>
    <td class="y-bg"><input type="text" id="s_key" class="input-text" name="info[s_key]" id="s_key" size="30" /></td>
  </tr>
  <tr>
    <th><?php echo L('siteSetting_description')?>：</th>
    <td class="y-bg"><input type="text" class="input-text" name="info[description]" id="description" size="30" /></td>
  </tr>
    <tr>
      <th><?php echo L('siteSetting_val')?>：</th>
      <td class="y-bg">
        <textarea rows="4" cols="40"  name="info[s_value]"></textarea>

      </td>
    </tr>
      <tr>
        <th><?php echo L('siteSetting_type')?>：</th>
        <td class="y-bg">
          <?= form::select($type,'','id="type" name="info[type]"') ?>
        </td>
      </tr>
      <tr>
        <th><?php echo L('siteSetting_sort')?>：</th>
        <td class="y-bg"><input type="text" class="input-text" name="info[sort]" id="sort" size="30" /></td>
      </tr>
</table>
</fieldset>
<div class="bk15"></div>
    <input type="submit" class="dialog" id="dosubmit" name="dosubmit" value="<?php echo L('submit');?>" />
</form>
</div>

</body>
</html>
